package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Role;

import java.util.List;

public interface RoleService {
    List<Role> findAll();

    PageResult pageQuery(QueryPageBean queryPageBean);

    Role findById(Integer id);

    Integer[] findPermissionsByRoleId(Integer id);

    Integer[] findUrlsByRoleId(Integer id);

    void edit(Integer[] urls, Integer[] permissions, Role role);

    void addRole(Role role, Integer[] permissions, Integer[] urls);

    void delete(Integer id);
}
